#!/bin/bash

echo "构建"

rm -rf yarn.lock
echo "==> npm install"
pwd
node -v
npm cache clean --force
npm config set strict-ssl false
npm config set registry https://registry.npm.taobao.org
npm config get registry
npm install
echo "==> vue-cli-service build --mode dev"
vue-cli-service build --mode dev

rm -rf docker/dist
cp -rf dist docker

sed -i "s|{API_URL}|${API_URL}|g" docker/conf/http.conf




